{include header.htm 1}
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#000000">
  <tr>
    <td height="24" colspan="2" bgcolor="#FFFFFF">查看/修改会员 <a href="user_main.php">会员管理</a> </td>
  </tr><form name="form1" method="post" action="{:FormToSelf}">
  <tr>
    <td width="100" height="24" bgcolor="#FFFFFF">ID</td>
    <td width="300" bgcolor="#FFFFFF">{:view_user.uid}</td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">用户名</td>
    <td bgcolor="#FFFFFF"><input name="input[username]" type="text" id="input[username]" value="{:view_user.username}"></td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">Email</td>
    <td bgcolor="#FFFFFF">
      <input name="input[email]" type="text" id="input[email]" value="{:view_user.email}">    </td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">真实姓名</td>
    <td bgcolor="#FFFFFF"><input name="input[u_name]" type="text" id="input[u_name]" value="{:view_user.u_name}" /></td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">证件号码</td>
    <td bgcolor="#FFFFFF"><input name="input[u_cardid]" type="text" id="input[u_cardid]" value="{:view_user.u_cardid}" />
      <select name="input[u_cardtype]" id="input[u_cardtype]">
        <option value="0" {if}{:view_user.u_cardtype}==0{/if}selected="selected"{/endif}>身份证</option>
        <option value="1" {if}{:view_user.u_cardtype}==1{/if}selected="selected"{/endif}>其他</option>
      </select></td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">实名认证</td>
    <td bgcolor="#FFFFFF"><input name="input[u_namecheck]" type="radio" disabled="disabled" value="1" {if}{:view_user.u_namecheck}==1{/if}checked="checked"{/endif}/>
是
  <input type="radio" name="input[u_namecheck]" value="0" disabled="disabled" {if}{:view_user.u_namecheck}==0{/if}checked="checked"{/endif}/>
否 实名认证方法下次提供！ </td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">注册时间</td>
    <td bgcolor="#FFFFFF">{:view_user.regtime|GetMyDate Y-m-d H:i:s,@}</td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">注册IP</td>
    <td bgcolor="#FFFFFF">{:view_user.regip}</td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">最后登陆时间</td>
    <td bgcolor="#FFFFFF">{:view_user.u_lastlogin|GetMyDate Y-m-d H:i:s,@}</td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">最后登陆IP</td>
    <td bgcolor="#FFFFFF">{:view_user.u_lastlogip}</td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">过期时间</td>
    <td bgcolor="#FFFFFF"><!--{if}{:view_user.u_expired}{/if}-->{:view_user.u_expired|GetMyDate Y-m-d H:i:s,@}<!--{/endif}{else}-->永久<!--{/else}-->
	调整为
	  <input name="input[u_expired]" type="text" id="input[u_expired]" size="6" />
	天后过期</td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">限制登陆</td>
    <td bgcolor="#FFFFFF"><p>
      <label>
        <input type="radio" name="input[u_loginban]" value="1" {if}{:view_user.u_loginban}==1{/if}checked="checked"{/endif}/>
        是</label>
      <label>
        <input name="input[u_loginban]" type="radio" value="0" {if}{:view_user.u_loginban}==0{/if}checked="checked"{/endif}/>
        否</label>
    </p></td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">重置密码</td>
    <td bgcolor="#FFFFFF"><input name="input[password]" type="password" id="input[password]">
      不重置留空</td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">用户组</td>
    <td bgcolor="#FFFFFF">
      {:_usergroup|GetRadioLister @,input[group],[:view_user.group],id,name}</td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">附加用户组</td>
    <td bgcolor="#FFFFFF">  {:_usergroup|GetCheckboxLister @,input[groups],[:view_user.groups],id,name}</td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">院系</td>
    <td bgcolor="#FFFFFF">{:a|GetCollegesLister|GetTreeSelect @,input[u_cid],[:view_user.u_cid],id,name,请选择院系,onchange="loadZhuanye();loadClass();"} <a href="college_main.php">院系管理</a></td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">专业</td>
    <td bgcolor="#FFFFFF"><span id="st_zhuanye">{:view_user.u_cid|GetProfessionalLister @|GetTreeSelect @,input[u_pid],[:view_user.u_pid],id,pname,请选择专业}</span> <a href="professional_main.php">专业管理</a></td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">年级</td>
    <td bgcolor="#FFFFFF">{:a|GetGrades|GetEasySelect @,input[grade],[:view_user.grade],请选择年级,onchange=&quot;loadClass();&quot;}</td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">自然班</td>
    <td bgcolor="#FFFFFF"><span id="st_class">{:a|GetStudentClassList 0|GetTreeSelect @,input[class],[:view_user.class],id,classname,请选择班级} </span>  <a href="user_class_main.php">班级管理</a></td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">课程班</td>
    <td bgcolor="#FFFFFF"><label>
	    {:a|GetStudentClassList 1|GetCheckboxLister @,input[classes],[:view_user.classes],id,classname}</label></td>
  </tr>
  <tr>
    <td height="24" bgcolor="#FFFFFF">部门职位</td>
    <td bgcolor="#FFFFFF">{:a|GetBussTreeList|GetTreeList @,fun_gettreelist_userbuss}
&nbsp;担任职位
<input name="input[u_position]" type="text" id="input[u_position]" value="{:view_user.u_position}" /></td>
  </tr>
  <tr>
    <td height="24" colspan="2" bgcolor="#FFFFFF"><strong>自定义字段</strong></td>
    </tr>
	{foreach selfdef_fields k v}
  <tr>
    <td height="24" bgcolor="#FFFFFF">{:v.0|GetMsg @}</td>
    <td bgcolor="#FFFFFF"><input name="input[{:v.0}]" type="text" id="input[{:v.0}]" value="{:view_user.[:v.0]}" /></td>
  </tr>
  {/foreach}
  <tr>
    <td height="24" bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF"><input type="submit" value="编辑">
      <input name="Submit" type="hidden" id="Submit" value="1" />
      <input name="id" type="hidden" id="id" value="{:id}" /></td>
  </tr>
  </form>
  <tr>
    <td height="24" colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  <tr>
    <td height="24" colspan="2" bgcolor="#FFFFFF"><a href="user_add.php">添加用户</a></td>
  </tr>
</table>
<script language="javascript">
function loadZhuanye() {
	if(parseInt($('input[u_cid]').value) > 0) {
		var url = 'ajax_loadzhuanye.php?cid=' + $('input[u_cid]').value;
		ajaxLoadUrl(url,$('st_zhuanye'));
	}
}

function loadClass() {
	var cid = parseInt($('input[u_cid]').value);
	var grade = parseInt($('input[grade]').value);
	if(cid > 0 || grade) {
		var url = 'ajax_loadclass.php?cid=' + cid + '&grade=' + grade;
		ajaxLoadUrl(url,$('st_class'));
	}
}
</script>
{include footer.htm}
